This is more in line with the places where we want events to be
handled (i.e. all). So make the overview take a grab on the
stage itself.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
let shouldBeModal = !this._inXdndDrag;
if (shouldBeModal && !this._modal) {
let actionMode = Shell.ActionMode.OVERVIEW;
- if (Main.pushModal(this._overview, { actionMode })) {
+ if (Main.pushModal(global.stage, { actionMode })) {
this._modal = true;
} else {
this.hide();
} else {
// eslint-disable-next-line no-lonely-if
if (this._modal) {
- Main.popModal(this._overview);
+ Main.popModal(global.stage);
this._modal = false;
}
}